<template>
  <div>
    <h2>App</h2>

    <One v-on="obj" />
  </div>
</template>

<script>
  import One from "@/components/One";
  export default {
    name: "App",
    data() {
      return {
        obj: {
          hello: function (n) {
            console.log("hello", n);
          },
          world: function (n) {
            console.log("world", n);
          },
        },
      };
    },
    components: {
      One,
    },
    methods: {
      fn1() {
        console.log("祖宗函数执行了");
      },
    },
  };
</script>

<style></style>
